<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的博客</title>
    <style>
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;
        }
        .header {
            background-color: #333;
            color: #fff;
            padding: 10px 0;
            text-align: center;
        }
        .nav {
            background-color: #555;
            padding: 10px 0;
        }
        .nav ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }
        .nav ul li {
            float: left;
        }
        .nav ul li a {
            display: block;
            color: white;
            text-align: center;
            padding: 14px 16px;
            text-decoration: none;
        }
        .nav ul li a:hover {
            background-color: #111;
        }
        .container {
            width: 80%;
            margin: 20px auto;
            background-color: #fff;
            padding: 20px;
        }
        .footer {
            background-color: #333;
            color: #fff;
            text-align: center;
            padding: 10px 0;
            position: relative;
            bottom: 0;
            width: 100%;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>我的博客</h1>
    </div>
    <div class="nav">
        <ul>
            <li><a href="#">首页</a></li>
            <li><a href="#">分类</a></li>
            <li><a href="#">关于</a></li>
            <li><a href="#">联系</a></li>
        </ul>
    </div>
    <div class="container">
        <h2>最新文章</h2>
        <div class="post">
            <h3>文章标题1</h3>
            <p>这里是文章内容摘要...</p>
            <a href="#">阅读全文</a>
        </div>
        <div class="post">
            <h3>文章标题2</h3>
            <p>这里是文章内容摘要...</p>
            <a href="#">阅读全文</a>
        </div>
        <!-- 更多文章 -->
    </div>
    <div class="footer">
        &copy; 2024 我的博客
    </div>
</body>
</html>
